package com.tkc.service;

import java.util.List;
import java.util.Map;

import com.tkc.common.result.info.PageInfo;
import com.tkc.common.result.info.PerformanceInfo;
import com.tkc.service.model.dto.TeacherDTO;
import com.tkc.service.model.info.TeacherInfo;

/**
 * 
 * @Function:service层接口
 * 
 * @Project :assessmenttask 
 * @Package :com.tkc.service 
 * @File :TeacherServices.java 
 * @ClassName: TeacherServices  
 * 
 * @author tankaichao 
 * @email cgztkc@126.com 
 * @Date 2016年8月9日下午6:55:10
 * @since JDK 1.8 
 *
 */
public interface TeacherServices {
	
	/* 新增教师信息 */
	int addTeacher(TeacherDTO teacherDTO);
	
	/* 查询教师信息 （分页）*/
	List<TeacherInfo> selectTeacherByPage(TeacherDTO teacherDTO, PageInfo pageInfo);
	
	/* 修改教师信息 */
	int updateTeacher(TeacherDTO teacherDTO);
	
	/*删除教师信息*/
	int deleteTeacher(TeacherDTO teacherDTO);
	
	/* 逐条新增千万条教师信息 */
	PerformanceInfo addCroreTeacherOneToOne(TeacherDTO teacherDTO);
	
	/* redis新增教师的登录信息 */
	PerformanceInfo addCroreTeacherToRedis(TeacherDTO teacherDTO);
	
	/* 批量新增千万条教师信息 */
	PerformanceInfo addCroreTeacherBulk(TeacherDTO teacherDTO);
	
	/*存储过程新增千万条教师信息*/
	PerformanceInfo addCroreTeacherStoredprocedure(TeacherDTO teacherDTO);
	
	/* 清空教师信息 */
	int clearTeacher();
	
	/*登录校验*/
	Map<String, Object> selectTeacherByAuth(TeacherDTO teacherDTO);
	
	/*redis校验*/
	Map<String, Object> selectTeacherByRedisAuth(TeacherDTO teacherDTO);

}
